<%@page import="org.apache.jasper.tagplugins.jstl.core.ForEach"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	<%
		request.setCharacterEncoding("utf-8");

		String username = request.getParameter("username");
		String password = request.getParameter("password");
		String[] infos = request.getParameterValues("info");
		
		session.setAttribute("username", username);
		
		
		System.out.println(username);
		System.out.println(password);
		System.out.println(infos);
		if (!"admin".equals(username)) {
			request.getRequestDispatcher("register.jsp").forward(request, response);
		} else {
			//response.sendRedirect("http://www.baidu.com");
		}
	%>

	<table>
		<caption>提交的注册信息</caption>
		<tr>
			<td>用户名：</td>
			<td>
				<%= session.getAttribute("username") %>
			</td>
		</tr>
		<tr>
			<td>密码：</td>
			<td></td>
		</tr>
		<tr>
			<td>信息来源：</td>
			<td>
				
			</td>
		</tr>
	</table>
</body>
</html>